﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace David.WebSite.Data.Core
{
    public class Result<TData, TStatus>
            where TData : class
    {
        public Result(TData data, TStatus status)
        {
            _data = data;
            _status = status;
        }

        private TData _data = null;

        [DataMember]
        public TData Data
        {
            get
            {
                return _data;
            }
            set
            {
                _data = value;
            }
        }

        private TStatus _status = default(TStatus);

        [DataMember]
        public TStatus Status
        {
            get
            {
                return _status;
            }
            set
            {
                _status = value;
            }
        }

    }
}
